/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

/*
 * LuoUusiKayttaja.java
 *
 * Created on 16.2.2009, 13:54:59
 */
package kayttoliittyma;

import java.awt.Color;
import opintopaivakirja.*;

/**
 *
 * @author Erkkinuuttinen
 */
public class LuoUusiKayttaja extends javax.swing.JDialog {

    javax.swing.JDialog parent;
    //Kirjautuminen ikkuna = new Kirjautuminen(this, rootPaneCheckingEnabled);
    //LuoUusiKayttaja akkuna = new LuoUusiKayttaja(this, rootPaneCheckingEnabled);

    /** Creates new form LuoUusiKayttaja
     * @param parent
     * @param modal 
     */
//    public LuoUusiKayttaja(java.awt.Frame parent, boolean modal) {
//        super(parent, modal);
//        initComponents();
//    }
    public LuoUusiKayttaja(javax.swing.JDialog parent, boolean modal) {
        super(parent, modal);
        initComponents();
        this.parent = parent;
    }

    /** This method is called from within the constructor to
     * initialize the form.
     * WARNING: Do NOT modify this code. The content of this method is
     * always regenerated by the Form Editor.
     */
    @SuppressWarnings("unchecked")
    // <editor-fold defaultstate="collapsed" desc="Generated Code">//GEN-BEGIN:initComponents
    private void initComponents() {

        jLabel2 = new javax.swing.JLabel();
        jLabel6 = new javax.swing.JLabel();
        jLabel5 = new javax.swing.JLabel();
        jTextFieldRyhmatunnus = new javax.swing.JTextField();
        jTextFieldSposti = new javax.swing.JTextField();
        jLabel4 = new javax.swing.JLabel();
        jTextFieldSukunimi = new javax.swing.JTextField();
        jTextFieldOpiskelijatunnus = new javax.swing.JTextField();
        jLabel3 = new javax.swing.JLabel();
        jLabel1 = new javax.swing.JLabel();
        jTextFieldEtunimi = new javax.swing.JTextField();
        jLabel12 = new javax.swing.JLabel();
        jLabel11 = new javax.swing.JLabel();
        jSeparator1 = new javax.swing.JSeparator();
        jLabel7 = new javax.swing.JLabel();
        jTextFieldKayttajatunnus = new javax.swing.JTextField();
        jLabel13 = new javax.swing.JLabel();
        jLabelOhjeKtunnus = new javax.swing.JLabel();
        jLabelOhjeSalasana = new javax.swing.JLabel();
        jLabel9 = new javax.swing.JLabel();
        jPasswordField1Salasana = new javax.swing.JPasswordField();
        jLabel14 = new javax.swing.JLabel();
        jPasswordField2Salasana = new javax.swing.JPasswordField();
        jButton1 = new javax.swing.JButton();
        jButton2 = new javax.swing.JButton();
        jLabel15 = new javax.swing.JLabel();
        jSeparator2 = new javax.swing.JSeparator();
        jLabelVirhe = new javax.swing.JLabel();
        jLabelEtunimiVirhe = new javax.swing.JLabel();
        jLabelSukunimiVirhe = new javax.swing.JLabel();

        setDefaultCloseOperation(javax.swing.WindowConstants.DISPOSE_ON_CLOSE);

        jLabel2.setFont(new java.awt.Font("Tahoma", 1, 11));
        jLabel2.setText("Henkilötiedot");
        jLabel2.setName("jLabel2"); // NOI18N

        jLabel6.setText("Sähköposti:");
        jLabel6.setName("jLabel6"); // NOI18N

        jLabel5.setText("Ryhmätunnus:");
        jLabel5.setName("jLabel5"); // NOI18N

        jTextFieldRyhmatunnus.setName("jTextFieldRyhmatunnus"); // NOI18N

        jTextFieldSposti.setName("jTextFieldSposti"); // NOI18N

        jLabel4.setText("Opiskelijatunnus: ");
        jLabel4.setName("jLabel4"); // NOI18N

        jTextFieldSukunimi.setName("jTextFieldSukunimi"); // NOI18N

        jTextFieldOpiskelijatunnus.setName("jTextFieldOpiskelijatunnus"); // NOI18N

        jLabel3.setText("Sukunimi:");
        jLabel3.setName("jLabel3"); // NOI18N

        jLabel1.setText("Etunimi:");
        jLabel1.setName("jLabel1"); // NOI18N

        jTextFieldEtunimi.setName("jTextFieldEtunimi"); // NOI18N

        jLabel12.setForeground(new java.awt.Color(255, 0, 0));
        jLabel12.setText("*");
        jLabel12.setName("jLabel12"); // NOI18N

        jLabel11.setForeground(new java.awt.Color(255, 0, 0));
        jLabel11.setText("*");
        jLabel11.setName("jLabel11"); // NOI18N

        jSeparator1.setName("jSeparator1"); // NOI18N

        jLabel7.setText("Käyttäjätunnus:");
        jLabel7.setName("jLabel7"); // NOI18N

        jTextFieldKayttajatunnus.setName("jTextFieldKayttajatunnus"); // NOI18N

        jLabel13.setForeground(new java.awt.Color(255, 0, 0));
        jLabel13.setText("*");
        jLabel13.setName("jLabel13"); // NOI18N

        jLabelOhjeKtunnus.setText("Käyttäjätunnus vähintään 5 merkkiä a-z, 0-9.");
        jLabelOhjeKtunnus.setName("jLabelOhjeKtunnus"); // NOI18N

        jLabelOhjeSalasana.setForeground(new java.awt.Color(153, 153, 153));
        jLabelOhjeSalasana.setText("Syötä sama salasana kahteen kertaan. Salasana vähintään 0 merkkiä.");
        jLabelOhjeSalasana.setName("jLabelOhjeSalasana"); // NOI18N

        jLabel9.setText("Salasana:");
        jLabel9.setName("jLabel9"); // NOI18N

        jPasswordField1Salasana.setName("jPasswordField1Salasana"); // NOI18N

        jLabel14.setForeground(new java.awt.Color(255, 0, 0));
        jLabel14.setText("*");
        jLabel14.setName("jLabel14"); // NOI18N

        jPasswordField2Salasana.setName("jPasswordField2Salasana"); // NOI18N

        jButton1.setText("Peruuta");
        jButton1.setName("jButton1"); // NOI18N
        jButton1.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                jButton1ActionPerformed(evt);
            }
        });

        jButton2.setText("Tallenna");
        jButton2.setName("jButton2"); // NOI18N
        jButton2.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                jButton2ActionPerformed(evt);
            }
        });

        jLabel15.setForeground(new java.awt.Color(255, 0, 0));
        jLabel15.setText("*");
        jLabel15.setName("jLabel15"); // NOI18N

        jSeparator2.setName("jSeparator2"); // NOI18N

        jLabelVirhe.setName("jLabelVirhe"); // NOI18N

        jLabelEtunimiVirhe.setName("jLabelEtunimiVirhe"); // NOI18N

        jLabelSukunimiVirhe.setName("jLabelSukunimiVirhe"); // NOI18N

        javax.swing.GroupLayout layout = new javax.swing.GroupLayout(getContentPane());
        getContentPane().setLayout(layout);
        layout.setHorizontalGroup(
            layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(layout.createSequentialGroup()
                .addContainerGap()
                .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addComponent(jLabel2)
                    .addGroup(layout.createSequentialGroup()
                        .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING, false)
                            .addGroup(javax.swing.GroupLayout.Alignment.LEADING, layout.createSequentialGroup()
                                .addComponent(jLabel3)
                                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                                .addComponent(jTextFieldSukunimi, javax.swing.GroupLayout.PREFERRED_SIZE, 119, javax.swing.GroupLayout.PREFERRED_SIZE))
                            .addGroup(javax.swing.GroupLayout.Alignment.LEADING, layout.createSequentialGroup()
                                .addComponent(jLabel1)
                                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                                .addComponent(jTextFieldEtunimi, javax.swing.GroupLayout.PREFERRED_SIZE, 119, javax.swing.GroupLayout.PREFERRED_SIZE))
                            .addGroup(layout.createSequentialGroup()
                                .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                                    .addComponent(jLabel4)
                                    .addComponent(jLabel5)
                                    .addComponent(jLabel6))
                                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                                .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING, false)
                                    .addComponent(jTextFieldRyhmatunnus)
                                    .addComponent(jTextFieldOpiskelijatunnus, javax.swing.GroupLayout.DEFAULT_SIZE, 119, Short.MAX_VALUE)
                                    .addComponent(jTextFieldSposti))))
                        .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                            .addGroup(layout.createSequentialGroup()
                                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                                .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                                    .addGroup(layout.createSequentialGroup()
                                        .addComponent(jLabel12, javax.swing.GroupLayout.PREFERRED_SIZE, 15, javax.swing.GroupLayout.PREFERRED_SIZE)
                                        .addGap(6, 6, 6)
                                        .addComponent(jLabelSukunimiVirhe))
                                    .addGroup(layout.createSequentialGroup()
                                        .addComponent(jLabel11, javax.swing.GroupLayout.PREFERRED_SIZE, 15, javax.swing.GroupLayout.PREFERRED_SIZE)
                                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                                        .addComponent(jLabelEtunimiVirhe))))
                            .addGroup(layout.createSequentialGroup()
                                .addGap(48, 48, 48)
                                .addComponent(jLabelVirhe, javax.swing.GroupLayout.PREFERRED_SIZE, 223, javax.swing.GroupLayout.PREFERRED_SIZE)))))
                .addContainerGap(49, Short.MAX_VALUE))
            .addComponent(jSeparator1, javax.swing.GroupLayout.DEFAULT_SIZE, 538, Short.MAX_VALUE)
            .addGroup(layout.createSequentialGroup()
                .addContainerGap()
                .addComponent(jLabel7)
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
                .addComponent(jTextFieldKayttajatunnus, javax.swing.GroupLayout.PREFERRED_SIZE, 119, javax.swing.GroupLayout.PREFERRED_SIZE)
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                .addComponent(jLabel13, javax.swing.GroupLayout.PREFERRED_SIZE, 15, javax.swing.GroupLayout.PREFERRED_SIZE)
                .addGap(3, 3, 3)
                .addComponent(jLabelOhjeKtunnus)
                .addContainerGap(81, Short.MAX_VALUE))
            .addGroup(layout.createSequentialGroup()
                .addContainerGap()
                .addComponent(jLabelOhjeSalasana)
                .addContainerGap(192, Short.MAX_VALUE))
            .addGroup(layout.createSequentialGroup()
                .addContainerGap()
                .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, layout.createSequentialGroup()
                        .addComponent(jLabel9)
                        .addGap(40, 40, 40)
                        .addComponent(jPasswordField1Salasana, javax.swing.GroupLayout.PREFERRED_SIZE, 119, javax.swing.GroupLayout.PREFERRED_SIZE)
                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                        .addComponent(jLabel14, javax.swing.GroupLayout.PREFERRED_SIZE, 15, javax.swing.GroupLayout.PREFERRED_SIZE)
                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                        .addComponent(jPasswordField2Salasana, javax.swing.GroupLayout.PREFERRED_SIZE, 119, javax.swing.GroupLayout.PREFERRED_SIZE))
                    .addComponent(jButton1, javax.swing.GroupLayout.Alignment.TRAILING))
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addComponent(jButton2)
                    .addComponent(jLabel15, javax.swing.GroupLayout.PREFERRED_SIZE, 15, javax.swing.GroupLayout.PREFERRED_SIZE))
                .addContainerGap(101, Short.MAX_VALUE))
            .addComponent(jSeparator2, javax.swing.GroupLayout.DEFAULT_SIZE, 538, Short.MAX_VALUE)
        );
        layout.setVerticalGroup(
            layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(layout.createSequentialGroup()
                .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addGroup(layout.createSequentialGroup()
                        .addContainerGap()
                        .addComponent(jLabel2)
                        .addGap(11, 11, 11)
                        .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                            .addComponent(jLabel1)
                            .addComponent(jTextFieldEtunimi, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                            .addComponent(jLabel11)
                            .addComponent(jLabelEtunimiVirhe))
                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                        .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                            .addComponent(jLabel3)
                            .addComponent(jTextFieldSukunimi, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                            .addComponent(jLabel12)
                            .addComponent(jLabelSukunimiVirhe))
                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                        .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                            .addComponent(jLabel4)
                            .addComponent(jTextFieldOpiskelijatunnus, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
                        .addGap(9, 9, 9)
                        .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                            .addComponent(jTextFieldRyhmatunnus, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                            .addComponent(jLabel5))
                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                        .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                            .addComponent(jTextFieldSposti, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                            .addComponent(jLabel6)))
                    .addGroup(layout.createSequentialGroup()
                        .addGap(137, 137, 137)
                        .addComponent(jLabelVirhe, javax.swing.GroupLayout.PREFERRED_SIZE, 20, javax.swing.GroupLayout.PREFERRED_SIZE)))
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                .addComponent(jSeparator1, javax.swing.GroupLayout.PREFERRED_SIZE, 10, javax.swing.GroupLayout.PREFERRED_SIZE)
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                    .addComponent(jLabel7)
                    .addComponent(jTextFieldKayttajatunnus, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addComponent(jLabelOhjeKtunnus)
                    .addComponent(jLabel13))
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                .addComponent(jLabelOhjeSalasana)
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                    .addComponent(jLabel9)
                    .addComponent(jLabel15)
                    .addComponent(jLabel14)
                    .addComponent(jPasswordField1Salasana, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addComponent(jPasswordField2Salasana, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                    .addComponent(jButton1)
                    .addComponent(jButton2))
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, 18, Short.MAX_VALUE)
                .addComponent(jSeparator2, javax.swing.GroupLayout.PREFERRED_SIZE, 10, javax.swing.GroupLayout.PREFERRED_SIZE))
        );

        pack();
    }// </editor-fold>//GEN-END:initComponents

    private void jButton1ActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jButton1ActionPerformed
        //parent.setVisible(true);
        this.setVisible(false);
    //System.exit(1);

    // TODO add your handling code here:
    }//GEN-LAST:event_jButton1ActionPerformed

    private void jButton2ActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jButton2ActionPerformed

        Kayttaja kayttaja = new Kayttaja();

        String etunimi = jTextFieldEtunimi.getText().trim();
        String sukunimi = jTextFieldSukunimi.getText().trim();
        String rtunnus = jTextFieldRyhmatunnus.getText().trim();
        String otunnus = jTextFieldOpiskelijatunnus.getText().trim();
        String sposti = jTextFieldSposti.getText().trim();
        String kayttajatunnus = jTextFieldKayttajatunnus.getText().trim();
        String salasana1 = jPasswordField1Salasana.getText().trim();
        String salasana2 = jPasswordField2Salasana.getText().trim();
        //System.out.println("lskdv");

        if (!salasana1.equals(salasana2) || etunimi.length() < 1 || sukunimi.length() < 1 || kayttajatunnus.length() < 5) {

            if (!salasana1.equals(salasana2)) {
                jLabelOhjeSalasana.setForeground(Color.red);
                jPasswordField1Salasana.setBackground(Color.pink);
                jPasswordField2Salasana.setBackground(Color.pink);
            } //jLabelVirhe.setText("Anna salasana kahteen kertaan!");
            else {
                jLabelOhjeSalasana.setForeground(Color.gray);
                jPasswordField1Salasana.setBackground(Color.white);
                jPasswordField2Salasana.setBackground(Color.white);
            }
            if (etunimi.length() < 1) {
                jLabelEtunimiVirhe.setText("Anna etunimi!");
                jTextFieldEtunimi.setBackground(Color.pink);
            } else {
                jLabelEtunimiVirhe.setText("");
                jTextFieldEtunimi.setBackground(Color.white);
            }
            if (sukunimi.length() < 1) {
                jLabelSukunimiVirhe.setText("Anna sukunimi!");
                jTextFieldSukunimi.setBackground(Color.pink);
            } else {
                jLabelSukunimiVirhe.setText("");
                jTextFieldSukunimi.setBackground(Color.white);
            }
            if (kayttajatunnus.length() < 5) {
                //jLabelVirhe.setText("Käyttäjätunnus väh. 5 merkkiä!");
                jLabelOhjeKtunnus.setForeground(Color.red);
                jTextFieldKayttajatunnus.setBackground(Color.pink);
            } else {
                jLabelOhjeKtunnus.setForeground(Color.BLACK);
                jTextFieldKayttajatunnus.setBackground(Color.white);
            }
        } else {
            kayttaja.setEtunimi(etunimi);
            kayttaja.setSukunimi(sukunimi);
            kayttaja.setOtunnus(otunnus);
            kayttaja.setRtunnus(rtunnus);
            kayttaja.setSahkoposti(sposti);
            kayttaja.setKayttajatunnus(kayttajatunnus);
            kayttaja.setSalasana(salasana1);

            if (kayttaja.lisaaKayttaja()) {
                Kayttaja k = new Kayttaja();
                kayttaja.setEtunimi(null);
                kayttaja = k.kirjauduSisaan(kayttaja.getKayttajatunnus(), kayttaja.getSalasana());

                if (kayttaja.getEtunimi() != null) {
                    kayttaja.lisaaTemplate(1); // yleiset pohjat
                }
                kayttaja = null;
                this.setVisible(false);

            } else {
                jTextFieldKayttajatunnus.setBackground(Color.pink);
                jLabelVirhe.setForeground(Color.red);
                jLabelVirhe.setText("Käyttäjätunnus on jo käytössä!");
            }
            kayttaja = null;
        }
    }//GEN-LAST:event_jButton2ActionPerformed
    // Variables declaration - do not modify//GEN-BEGIN:variables
    private javax.swing.JButton jButton1;
    private javax.swing.JButton jButton2;
    private javax.swing.JLabel jLabel1;
    private javax.swing.JLabel jLabel11;
    private javax.swing.JLabel jLabel12;
    private javax.swing.JLabel jLabel13;
    private javax.swing.JLabel jLabel14;
    private javax.swing.JLabel jLabel15;
    private javax.swing.JLabel jLabel2;
    private javax.swing.JLabel jLabel3;
    private javax.swing.JLabel jLabel4;
    private javax.swing.JLabel jLabel5;
    private javax.swing.JLabel jLabel6;
    private javax.swing.JLabel jLabel7;
    private javax.swing.JLabel jLabel9;
    private javax.swing.JLabel jLabelEtunimiVirhe;
    private javax.swing.JLabel jLabelOhjeKtunnus;
    private javax.swing.JLabel jLabelOhjeSalasana;
    private javax.swing.JLabel jLabelSukunimiVirhe;
    private javax.swing.JLabel jLabelVirhe;
    private javax.swing.JPasswordField jPasswordField1Salasana;
    private javax.swing.JPasswordField jPasswordField2Salasana;
    private javax.swing.JSeparator jSeparator1;
    private javax.swing.JSeparator jSeparator2;
    private javax.swing.JTextField jTextFieldEtunimi;
    private javax.swing.JTextField jTextFieldKayttajatunnus;
    private javax.swing.JTextField jTextFieldOpiskelijatunnus;
    private javax.swing.JTextField jTextFieldRyhmatunnus;
    private javax.swing.JTextField jTextFieldSposti;
    private javax.swing.JTextField jTextFieldSukunimi;
    // End of variables declaration//GEN-END:variables
}
